package com.sgb.kjwl.view.ui.adapter.self.packers;

import android.content.Context;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.swgk.core.util.PickSelectEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class SelfLabelAdapter extends BaseRecycleAdapter<PickSelectEntity> {

    public SelfLabelAdapter(Context context, List<PickSelectEntity> labelList) {
        super(context, R.layout.item_label_view, labelList);
    }

    @Override
    public void convert(ItemViewHolder holder, PickSelectEntity entity) {
        holder.setBinding(BR.viewModel, entity);
        TextView tvLabel = holder.itemView.findViewById(R.id.tv_label);
        tvLabel.setText(entity.getProjectscale());
    }

}
